/*
 * ============================================================================
 * Copyright Notice!
 * ----------------------------------------------------------------------------
 * This file contains proprietary and confidential information belonging to the
 * group of people involvled in developing this project.  Reproduction, disclosure 
 * or use without specific written authorization from project stake holders is 
 * prohibited. Please refer the readme.txt in project installation folder for more
 * specific contacts
 *
 * All rights reserved.
 * ============================================================================
 */
package edu.uwm.universitydb.framework.db.command;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * <code>DataFetchCommand</type>
 * 
 * Contract for commands dealing with data fetch operations.
 * (ie) SELECT queries. The type of result expected from command
 * needs to be provided during declaration.
 * 
 * @author Shyam Nair
 */
public interface DataFetchCommand<T> extends DBCommand<T>
{
    /**
     * <code>processResult(...)</code>
     * 
     * @param result
     * @return
     */
    T processResult(final ResultSet result) throws SQLException;
}


/*
 * ============================================================================
 * Change History
 * ----------------------------------------------------------------------------
 * Apr 6, 2014   Shyam Nair.
 * File created
 * ----------------------------------------------------------------------------
 */